package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.entity.Preject;
import com.itheima.entity.Projecttype;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.query.ProjectTypePageQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author guanhuaer
 * @since 2024-09-05
 */
@Mapper
public interface ProjecttypeMapper extends BaseMapper<Projecttype> {

    List<Projecttype> selectAll();

    Projecttype selectType(String projectType);

    void projectTypeAdd(Projecttype projecttypes);

    Page<Projecttype> page(ProjectTypePageQuery pageQuery);

    void Deldect(Integer id);

    void updateType(Projecttype projecttype);

    List<Integer> selectId();

    Preject selectPro(Integer id);

    List<Preject> selectPros(@Param("ids") List<Integer> ids);
}
